﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;

namespace Model.Core.Services
{
    public class CloudMqClientCtrl : MqClientCtrl
    {
        public CloudMqClientCtrl(IConfiguration configuration, ILogger<CloudMqClientCtrl> logger, LocalRobotInfo robotInfo) : base(logger, robotInfo)
        {

            configuration = configuration.GetSection("CloudMqClientOption");

            base.BuildMqttClientOptions(configuration);
            _=base.ConnectAsync();
            Logger = logger;
        }

        public ILogger Logger { get; }
    }
}
